import { createApp } from 'vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementPlus from 'element-plus'
import * as Icons from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import App from './App.vue'
import * as echarts from 'echarts'
import '@purge-icons/generated'
import './assets/styles/main.css'

axios.defaults.baseURL = "http://127.0.0.1:8080"
const app = createApp(App)
app.config.globalProperties.$echarts = echarts
for (let i in Icons) { app.component(i, Icons[i]) }
app.use(store).use(router).use(ElementPlus)
app.mount('#app')